import { defineStore } from 'pinia'
import type { SettingState } from './types/type'

const useLayOutSettingStoreItem = defineStore('LayOutSettingStore', {
  state: (): SettingState => ({
    isCollapse: false,
    isRefresh: false
  }),
  actions: {
    setIsCollapse(value: boolean) {
      this.isCollapse = value
    },
    setIsRefresh(value: boolean) {
      this.isRefresh = value
    }
  }
})

import pinia from '@/store'
const useLayOutSettingStore = () => useLayOutSettingStoreItem(pinia)
export default useLayOutSettingStore
